<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>无标题文档</title>
	<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/res/js/jquery.js"></script>
	<script type="text/javascript" src="/res/js/lib/json2.js"></script>	
	<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
	<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
	<c:if test='${!QUERY}'>
 	<script type="text/javascript" src="/res/js/pages/user/validList.js"></script>
 	</c:if> 
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">用户管理</a></li>
    <li><a href="#">${!QUERY?"身份认证申请列表":"身份认证申请查询"}</a></li>
    </ul>
    </div>
 
    <div class="rightinfo">
    <form id="queryForm" action='/user/valid/list${!QUERY?"":"?__query__"}' method="post"> 
    <div class="tools" style="margin:3px 0px;background: #efefef;padding:6px 0px;"> 
        <span class="toolbar" style="margin-left:10px;">
                       用户名：<input name="name" value="${dto.name}" type="text" class="dfinput" style="width:150px;"/>
                       手机号：<input name="mobile" value="${dto.mobile}" type="text" class="dfinput" style="width:200px;"/>
		   实名认证：
 			   <select class="dfinput"  name="idcardVerifyStatus" style="width:100px;" onchange="submit()">
 			    <option value="-1" ${!empty(dto) && dto.idcardVerifyStatus=="-1"?"selected":""}>---全部---</option>
				<option value="1" ${!empty(dto) && dto.idcardVerifyStatus=="1"?"selected":""}>已通过</option>
				<option value="0" ${!empty(dto) && dto.idcardVerifyStatus=="0"?"selected":""}>未通过</option>
			   </select> 
		   手持证件照认证：
 			   <select class="dfinput"  name="picVerifyStatus" style="width:100px;" onchange="submit()">
 			    <option value="-1" ${!empty(dto) && dto.picVerifyStatus=="-1"?"selected":""}>---全部---</option>
 			    <option value="0" ${!empty(dto) && dto.picVerifyStatus=="0"?"selected":""}>审核中</option>
				<option value="1" ${!empty(dto) && dto.picVerifyStatus=="1"?"selected":""}>已通过</option>
				<option value="2" ${!empty(dto) && dto.picVerifyStatus=="2"?"selected":""}>未通过</option>				
				<option value="3" ${!empty(dto) && dto.picVerifyStatus=="3"?"selected":""}>未认证</option>
			   </select>  			                           
        </span>
    	<ul class="toolbar" style="margin-left:20px;">
	        <li onclick="$('#queryForm').submit()"><span><img src="/res/images/ico06.png" /></span>搜索</li>
        </ul>    
    </div>

    <table class="tablelist">
    	<thead>
	    	<tr>
	        <th class="chk"><input id="chkAll" type="checkbox" value="" /></th>
	        <th width="36">编号</th>
	        <th>用户名</th>
	        <th>真实姓名</th>
	        <th>身份证</th>
	        <th>手机号</th>
	        <th>性别</th>
	        <th>身份证认证</th>
	        <th>手持证件照认证</th>
	        <th>提交时间</th>
 	        <c:if test='${!QUERY}'><th>证件照审核</th></c:if>       
	        </tr>
        </thead>
        <tbody>        
	        <c:forEach items="${list}" var="row" varStatus="status">
		        <tr title="${row.audit_msg }">
		        <td align="center"><input id="chk_${row.id}" type="checkbox" value="${row.id}" /></td>
		        <td>${status.index+1}</td>
		        <td><a href="javascript:view(${row.userId})" class="tablelink">${row.loginName}</a></td>
		        <td>${row.name}</td>
		        <td>${row.idcard}</td>
		        <td>${row.mobile}</td>
		        <td>${row.sex=="M"?"男":"女"}</td>		  
		        <td>${row.is_pass==1?"是":"否"}</td>
		        <td>
		            ${empty(row.audit_status)?"未认证":row.audit_status==0?"审核中":row.audit_status==1?"是":row.audit_status==2?"否":""}
		            <c:if test="${!empty(row.pic_url)}">
		              <a href="${row.pic_url}" target="_blank"><img src="${row.pic_url}" width="50" height="50"/></a>
		            </c:if>			        
		        </td>
		        <td><fmt:formatDate value="${row.audit_time}" pattern="yyyy-MM-dd HH:mm"/> </td>	
		        <c:if test='${!QUERY}'>
 		        <td>
 		           <c:if test="${row.audit_status==0}">
		            <a href="javascript:passPicAdiut('${row.id}')" class="tablelink">通过</a> 
		            <a href="javascript:refusePicAdiut('${row.id}')" class="tablelink">拒绝</a>
		           </c:if> 
		        </td>
		        </c:if>		        	
		        </tr> 
	        </c:forEach>
         </tbody>
    </table>   
    </form>
      
    <tags:pager pagerRange="10" pageSize="${pager.pageSize}" totalPage="${pager.pageCount}" curIndex="${pager.pageIndex}" rowCount="${pager.rowCount}" formId="queryForm"></tags:pager> 
 
    
    </div>
    
    <script type="text/javascript">
	   $('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
